﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Model.Statistical.Tags
{
    public class DataGrid_AppendRow:ITag
    {
        public string Value(BaseReport BR)
        {
            string str = "";
            var q = BR.TableFieldList.Where(s => s.IsPrimaryKey == false).ToList();
            foreach (var p in q )
            {                
                str += p.FieldName + ":'',";
            }
            str += "NF:" + BR.Year+",";
            str += "YF:" + BR.Month+",";
            str += "DWBM:'"+BR.DWBM+"',";
            str += "JH:'"+"',Rowid:''";            
            return str;
        }
    }
}
